<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script type="text/javascript">
    var user= {
        name: "高胜亚",
        age: 3,
        sex: "男"
    };
    console.log(user);
    var s=JSON.stringify(user);
    console.log(s)
</script>
</body>
</html>